#include <iostream>
#include <cmath>
using namespace std;
void printArr(int arr[],int num);
int main()
{
	int N;
	cin >> N;
	int temp = N;
	int i = 0;
	int arr[110] = {0};
	if(N == 0){
		cout << N << endl;
	}else if(N > 0){
		while(N != 0){
			arr[i] = N % 10;
			N = N / 10;
			i = i + 1;
		}
		printArr(arr,i);
	}else{
		N = abs(N);
		while(N != 0){
			arr[i] = N % 10;
			N = N / 10;
			i = i + 1;
		}
		cout << "-";
		printArr(arr,i);
	}
	return 0;
}
void printArr(int arr[],int num){
	bool flag = false;
	for(int j = 0;j<num;j++){
		if(arr[j] != 0 && flag == false){
			flag = true;
		}
		if(flag == true){
			cout << arr[j];
		}
	} 
}
